package org.infosys.controller.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.infosys.entity.User;
import org.springframework.web.bind.annotation.PathVariable;

public class GolablExceptionHandler {

    public static User exceptionHandler(@PathVariable Long id, BlockException ex) {
        return new User().setId(-1L).setName("限流").setIntro("被限流了");
    }
}
